﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;
using Bzure.Common.Core;

namespace Bzure.Security.Principal
{
    [Serializable]
    public class BzureUserModel : EntityModel<BzureUser>, IIdentity
    {
        public BzureUserModel(BzureUser user)
            : base(user)
        {
        }
        public string AuthenticationType { get { return "BzureAuthentication"; } }

        public bool IsAuthenticated { get; set; }
        public string Name { get { return this.Entity.UserName; } }
    }
}
